<!DOCTYPE html>
<html>
<head>
	<title></title>
<style type="text/css">
html{
	padding:0;
	margin:0;
	height: 100%;
}

.flex{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}
.flex-align-center{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;}
.flex-pack-center{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}

body {
	padding:0;
	margin:0;
	height: 100%;
	font-family:Arial, "Microsoft Yahei";
}
.wrap {
	width: 310px;
	overflow:hidden;
	-webkit-animation: bounceIn 600ms linear;
	-moz-animation: bounceIn 600ms linear;
	-o-animation: bounceIn 600ms linear;
	animation: bounceIn 600ms linear;
	background-color: #FFF;
	padding: 18px;
	border-radius: 5px;
	background-color: #c6dbff;
	color: #383838;
}
#login_btn_wraper{text-align: right;}
</style>
</head>
<body class="flex flex-align-center flex-pack-center">
	{volist name="order" id="vo"}
    <div class="wrap">
        <h1 style="text-align: center;">
        	{if condition="$vo.order_status eq 1 and $vo.pay_status eq 1"}
        	支付成功
        	{else/}
        	支付失败
        	{/if}
        </h1>
        <div class="login">
            <ul>
                <li>
                    订单号:{$vo.order_sn}
                </li>
                <li>
                    支付时间:{$vo.pay_time|date='Y-m-d H:i:s',###}
                </li>
                <li>
                    支付方式:
                    {if condition="$vo.pay_handle eq 'alipay'"}支付宝
                    {elseif condition="$vo.pay_handle eq 'weixin'"/}微信
                    {else/}
                    其它
                    {/if}
                </li>
            </ul>
            <div id="login_btn_wraper">
                <b id="wait">5</b>秒后<a id="href" href="/">跳转</a>到网站首页 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/">立即跳转</a>
            </div>
            <div id="errTip"></div>
        </div>
    </div>
    {/volist}
 <script type="text/javascript">
    (function(){
        var wait = document.getElementById('wait'),
            href = document.getElementById('href').href;
        var interval = setInterval(function(){
            var time = --wait.innerHTML;
            if(time <= 0) {
                location.href = href;
                clearInterval(interval);
            };
        }, 1000);

        // 禁止跳转
        window.stop = function (){
            clearInterval(interval);
        }
    })();
</script>
</body>
</html>